#include <stdio.h>

//打印九九乘法表
int main()
{
    int i = 1;
    int j = 1;
    for (i=1; i<=9; i++)
    {
        for(j=1; j<=i; j++)
        {
            printf("%d*%d=%-2d ",i,j,i*j);//%2d两位右对齐；-2d两位左对齐
        }
        printf("\n");
    }
    return 0;
}